package com.weiqiao.mall.repository;

import org.bson.Document;
import org.bson.conversions.Bson;

import java.util.List;

/**
 * @Description: 宝贝标签dao接口
 * @author: xujun
 * @Date: 2019/10/31  10:38
 */
public interface ILabelShelfRepository {

    /**
     * 查询 宝贝标签
     *
     * @param companyId
     * @param filter
     * @return
     */
    List<String> getLabelShelfList(int companyId, Bson filter);

    /**
     * 根据条件查询宝贝标签
     *
     * @param companyId
     * @param filter
     * @return
     */
    String getLabelShelfByFilter(int companyId, Bson filter);

    /**
     * 查找并更新
     *
     * @param companyId
     * @param filter
     * @param document
     * @param bool
     * @return
     */
    boolean findAndUpdate(int companyId, Bson filter, Document document, boolean bool);
}
